package com.spring.web.adminmanage.entities;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Table(name="user_login_log")
public class UserLoginLog {
	@Id
	private Long id;
	private Long userid;
	private String ip;
	private Date time;
	@Transient
	private String username;
	public UserLoginLog() {}
	public UserLoginLog(Long userid, String ip, Date time) {
		this.userid = userid;
		this.ip = ip;
		this.time = time;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getUserid() {
		return userid;
	}
	public void setUserid(Long userid) {
		this.userid = userid;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
}
